<?php
include_once("conn.php");
$webname = $_POST["webname"];
$webaddress = $_POST["webaddress"];
$oldwebname = $_POST["oldwebname"];

$query = "update link set webname='".$webname."',webaddress='".$webaddress."' where webname='".$oldwebname."' ";
$result = mysql_query($query);


?>